package nc.ui.ar.badacc;

import java.util.Map;

import nc.ui.arap.service.IRemoteCallItem;
import nc.vo.arap.badacc.BadAccDstlDetail;
import nc.vo.arap.service.ServiceVO;
import nc.vo.pub.BusinessException;

public class BadAccDstlDetailsCall implements IRemoteCallItem {

	protected ServiceVO serviceVO=null;
	
	private String code;
	
	private String pk_badaccdstl;
	
	private BadAccDstlPanel ui;
	
	public BadAccDstlDetailsCall(String pk_badaccdstl, BadAccDstlPanel ui) {
		this.pk_badaccdstl = pk_badaccdstl;
		this.ui = ui;
	}

	public ServiceVO getServiceVO() {
		if(serviceVO==null){
			serviceVO = new ServiceVO();
			serviceVO.setClassname("nc.itf.arap.badacc.IArapBadAccDstlQuery");
			serviceVO.setMethodname("queryBadAccDstlDetails");
			serviceVO.setParamtype(new Class[] {String.class});
			serviceVO.setParam(new Object[] {pk_badaccdstl});
			code = serviceVO.getCode();
		}
		return serviceVO;
	}

	public void handleResult(Map<String, Object> datas)
			throws BusinessException {
		BadAccDstlDetail[] vo =(BadAccDstlDetail[]) datas.get(code);
//		ui.setBadAccDstlDetails(vo);

	}

}
